package traits

import scalax.io.Resource
import java.io.PrintWriter

abstract class JsGenerator(val filename: String) {
  def generate: String

  def createFile {
    val js = generate;
    val fileOP = new PrintWriter(filename);
    fileOP.print(js);
    fileOP.close();
  }
}